package tech.aistar.corejava.day06.Polymorphic;

import tech.aistar.corejava.day06.extend.Animal;
import tech.aistar.corejava.day06.extend.Cat;
import tech.aistar.corejava.day06.extend.Dog;

/**
 * Created by 李雨昂 on 2019/7/22.
 */
public class TestAnimalPoly {
    public static void main(String[] args) {
        Animal dog = new Dog("哮天犬",100.0);
        dog.spark();

        Animal cat = new Cat("咪咪",100.0);
        cat.spark();
    }

}
